package hlp.dao;

import hlp.hibernateUtils.HibernateUtil;

import java.io.Serializable;

import org.hibernate.Session;

public class BaseDao<T extends Serializable,E extends Serializable> {
	
	protected Session getSession(){
		return HibernateUtil.currentSession();
	}
	
	public E save(T object){
		return (E)getSession().save(object);
	}
}
